<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"
	import="database.ProduktBatchDTO, database.ProduktBatchDAO, database.MySQLProduktBatchDAO, database.DALException, java.util.List"%>
<%
	request.setAttribute("title", "Create product batch");
%>
<%@include file="/WEB-INF/html/header.jsp"%>

<h1>Print product batch.</h1>
<br>
<script type="text/javascript">
<!--
function openView()
{
	var e = document.getElementById("id");
	var strId = e.options[e.selectedIndex].value;
	window.open("./ProductbatchPrintView?id=" + strId, "_blank");
}
//-->
</script>


<form action="#" method="POST">
<% if (request.getAttribute("productbatchlist") != null) { %>
<select name="id" id="id">
<%=request.getAttribute("productbatchlist") %>
</select>
<input type="button" name="view" value="View" onclick="openView();" />
<% } else { %>
<b>There doesn't seem to be any product batches.</b>

<% }  %>
</form>

<%@include file="/WEB-INF/html/footer.jsp"%>